package cn.smart.epic.common.persistence.dao;

import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @Auther Uncle_Z
 * @date 2018/7/24 8:36
 * @Email:2545375@qq.com
 * @Descrition
 * @since 1.0
 */

public interface PermissionMapper {

    /**
     * 获取用户的权限
     * @param username
     * @return
     */
    JSONObject getUserPermission(@Param("username") String username, @Param("list") List<Integer> roleId);

    /**
     * 获取所有菜单
     * @return
     */
    Set<String> getAllMenu();

    /**
     * 获取所有权限
     * @return
     */
    Set<String> getAllPermission();
}
